package cn.com.system.service.impl;

import cn.com.system.mapper.StaffDao;
import cn.com.system.pojo.Staff;
import cn.com.system.service.StaffService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;

/**
 * (Staff)表服务实现类
 *
 * @author makejava
 * @since 2021-04-06 20:06:46
 */
@Service("staffService")
public class StaffServiceImpl implements StaffService {
    @Resource
    private StaffDao staffDao;

    @Override
    public List<Staff> selectAll() {
        return staffDao.selectAll();
    }

    @Override
    public int staffMod(Staff staff) {
        return staffDao.staffMod(staff);
    }

    @Override
    public int addStaff(Staff staff) {
        return staffDao.addStaff(staff);
    }

    @Override
    public int getUserCount(HashMap<String, Object> map) {
        return staffDao.getUserCount(map);
    }
    @Override
    public List<Staff> getUserList(HashMap<String, Object> map) {
        return staffDao.getUserList(map);
    }

}
